package com.kidback.bbloc259.wxapi;

import com.alibaba.fastjson.JSONObject;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by meikai on 2020/06/04.
 */
public interface WXService {

    @GET("sns/oauth2/access_token")
    Observable<JSONObject> getAccessToken(
            @Query("appid") String appid,
            @Query("secret") String secret,
            @Query("code") String code,
            @Query("grant_type") String grant_type);

    @GET("sns/userinfo")
    Observable<WXUserInfo> getWXUserInfo(
            @Query("access_token") String access_token,
            @Query("openid") String secret,
            @Query("lang") String lang);


}
